package com.xhd.exception;

import java.sql.SQLException;

public class DatabaseException extends XException {

	 private static final long jm51 = 1L;

	  public DatabaseException()
	  {
	  }

	  public DatabaseException(int paramInt)
	  {
	    super(paramInt);
	  }

	  public DatabaseException(int paramInt, String paramString)
	  {
	    super(paramInt, paramString);
	  }

	  public DatabaseException(int paramInt, String paramString1, String paramString2)
	  {
	    super(paramInt, paramString1, paramString2);
	  }

	  public DatabaseException(int paramInt, String paramString1, String paramString2, String paramString3)
	  {
	    super(paramInt, paramString1, paramString2, paramString3);
	  }

	  public DatabaseException(int paramInt, String paramString, SQLException paramSQLException)
	  {
	    super(paramInt, paramSQLException.getErrorCode() + "-" + paramSQLException.getMessage());
	    setInsideMsg("SQL:" + paramString);
	  }

	  public DatabaseException(int paramInt, String paramString1, SQLException paramSQLException, String paramString2)
	  {
	    super(paramInt, paramString2 + ":" + paramSQLException.getErrorCode() + "-" + paramSQLException.getMessage());
	    setInsideMsg("SQL " + paramString2 + ":" + paramString1);
	  }

	  public DatabaseException(String paramString)
	  {
	    super(30001, paramString);
	  }

	  public DatabaseException(String paramString, SQLException paramSQLException)
	  {
	    super(30001, paramSQLException.getErrorCode() + "-" + paramSQLException.getMessage());
	    setInsideMsg("SQL:" + paramString);
	  }

	  public DatabaseException(XException paramSinocpcException)
	  {
	    super(paramSinocpcException);
	  }

}
